import request from '@/utils/request'

// 查询班组类型列表
export function listWorkTeamCategory(query) {
  return request({
    url: '/train/WorkTeamCategory/list',
    method: 'get',
    params: query
  })
}

// 查询班组类型详细
export function getWorkTeamCategory(id) {
  return request({
    url: '/train/WorkTeamCategory/' + id,
    method: 'get'
  })
}

// 新增班组类型
export function addWorkTeamCategory(data) {
  return request({
    url: '/train/WorkTeamCategory',
    method: 'post',
    data: data
  })
}

// 修改班组类型
export function updateWorkTeamCategory(data) {
  return request({
    url: '/train/WorkTeamCategory',
    method: 'put',
    data: data
  })
}

// 删除班组类型
export function delWorkTeamCategory(id) {
  return request({
    url: '/train/WorkTeamCategory/' + id,
    method: 'delete'
  })
}
